#网上下载一篇英语作文进行练习
from re import findall
with open('words.txt', encoding='utf-8') as f:
    words = f.read()
print(words)
word_lst=findall(r'\b\w+\b',words)
print('There are %d words in words.txt.'%(len(word_lst)))